From a8a86c3c82e4e180edd84daa8b207efbe1342f04 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Mon, 18 Jun 2007 16:52:04 +0100 Subject: [PATCH] x86: Code style in rdmsr_hypervisor_regs() is not consistent with wrmsr_hypervisor_regs(). Sync them up. Signed-off-by: Shane Wang --- xen/arch/x86/traps.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index ec9738e9e3..f97ea5e940 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -462,7 +462,17 @@ int rdmsr_hypervisor_regs( if ( idx > 0 ) return 0; - *eax = *edx = 0; + switch ( idx ) + { + case 0: + { + *eax = *edx = 0; + break; + } + default: + BUG(); + } + return 1; } -- 2.30.2